package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.constants.ArticleType;
import com.baseweb.webadmin.core.constants.AuthLevel;
import com.baseweb.webadmin.core.constants.VerifyStatus;
import com.baseweb.webadmin.core.model.pojo.ByUserBizAuth;
import org.joda.time.DateTime;

public class ByUserBizAuthvo {
    private Integer id;
    private Integer userId;
    private String userCnName;
    private String userMobile;
    private String authLevelName;
    private Integer authLevel;
    private String authTypeName;
    private String statusName;
    private String dailishang;
    private String province;
    private String city;
    private String district;
    private String imgUrl;
    private String name;
    private Integer authType;
    private Integer status;
    private String createTimeName;
    private Integer start;
    private Integer end;
    private String descn;
    private String authListStr;
    private Integer certificatesType;
    private Integer findFlag = 1;//1查询分页，2查询总条数

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserCnName() {
        return userCnName;
    }

    public void setUserCnName(String userCnName) {
        this.userCnName = userCnName;
    }

    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }

    public String getAuthLevelName() {
        if(this.authLevel == null || this.authLevel == 0 ) return "";
        return AuthLevel.getNameByCode(this.authLevel)==null?authLevel.toString():
                AuthLevel.getNameByCode(this.authLevel).getName();
    }

    public void setAuthLevelName(String authLevelName) {
        this.authLevelName = authLevelName;
    }

    public Integer getAuthLevel() {
        return authLevel;
    }

    public void setAuthLevel(Integer authLevel) {
        this.authLevel = authLevel;
    }

    public String getAuthTypeName() {
        return authTypeName;
    }

    public void setAuthTypeName(String authTypeName) {
        this.authTypeName = authTypeName;
    }

    public String getStatusName() {
        if(this.status == null || this.status == 0 ) return "";
        return VerifyStatus.getNameByCode(this.status)==null?status.toString():
                VerifyStatus.getNameByCode(this.status).getName();
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getDailishang() {
        return dailishang;
    }

    public void setDailishang(String dailishang) {
        this.dailishang = dailishang;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTimeName() {
        return createTimeName;
    }

    public void setCreateTimeName(String createTimeName) {
        this.createTimeName = createTimeName;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getEnd() {
        return end;
    }

    public void setEnd(Integer end) {
        this.end = end;
    }

    public String getDescn() {
        return descn;
    }

    public void setDescn(String descn) {
        this.descn = descn;
    }

    public String getAuthListStr() {
        return authListStr;
    }

    public void setAuthListStr(String authListStr) {
        this.authListStr = authListStr;
    }

    public Integer getFindFlag() {
        return findFlag;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setFindFlag(Integer findFlag) {
        this.findFlag = findFlag;
    }

    public Integer getCertificatesType() {
        return certificatesType;
    }

    public void setCertificatesType(Integer certificatesType) {
        this.certificatesType = certificatesType;
    }
}
